package modelx

import (
	"database/sql"
	"time"

	"gorm.io/gorm"
)

type MysqlX struct {
	gorm.Model
	Name  string    `gorm:"column:name;type:varchar(255);"`
	Age   string    `gorm:"column:age;type:varchar(255);"`
	Size  string    `gorm:"column:size;type:varchar(255);"`
	Bytes string    `gorm:"column:bytes;type:varchar(255);"`
	Time  time.Time `gorm:"column:time;type:timestamptz;"`
}
type PostgresX struct {
	gorm.Model
	Name      string       `gorm:"column:name;      type:varchar(255);"`
	Age       string       `gorm:"column:age;       type:varchar(255);"`
	Size      string       `gorm:"column:size;      type:varchar(255);"`
	Bytes     string       `gorm:"column:bytes;     type:varchar(255);"`
	Time      time.Time    `gorm:"column:time;      type:timestamptz;"`
	TimePoint *time.Time   `gorm:"column:time_point;type:timestamptz;"`
	NullTime  sql.NullTime `gorm:"column:null_time; type:timestamptz;"`
}
type TidbX struct {
	gorm.Model
	Name      string       `gorm:"column:name;type:varchar(255);"`
	Age       string       `gorm:"column:age;type:varchar(255);"`
	Size      string       `gorm:"column:size;type:varchar(255);"`
	Bytes     string       `gorm:"column:bytes;type:varchar(255);"`
	TimePoint *time.Time   `gorm:"column:time_point;type:timestamptz;"`
	NullTime  sql.NullTime `gorm:"column:null_time;type:timestamptz;"`
}
